<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<link rel="stylesheet" type="text/css" href="$!{basePath}/content/system/h5/css/common.css" />
		<link rel="stylesheet" type="text/css" href="$!{basePath}/content/system/h5/css/font.css" />
		<link rel="stylesheet" type="text/css" href="$!{basePath}/content/system/h5/css/index.css" />
		<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
		<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">
		<script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
		<script src='//cdn.bootcss.com/jquery/3.1.1/jquery.min.js'></script>
		<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
		<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm-extend.min.js' charset='utf-8'></script>
		<script src="$!{basePath}/app/js/vue.min.js"></script>
		<script src="$!{basePath}/app/js/axios.min.js"></script>
		<title></title>
	</head>
	<body>
		<div id="con">
			<div class="page">
				<div class="content">
					<div class="content-block">
						<div class="welcome">
							<div class="wel-content m-l12">
								<div class="fs12">
									欢迎您:{{info.user.userName}}，祝您工作愉快，加油！<br>
									距离{{info.nexYear}}年元旦还有:{{info.days}}天
								</div>
							</div>
						</div>
						<div class="num">
							<span class="num-money">￥-.-</span><br>
							<span class="num-txt">待结业绩</span>
						</div>
						<div class="day-num fs12" >
							<div class="item" @click="toUrl('/system/back/poster/posterMa/toMyList.do?type=day')">
								<span>{{info.dayNum}}</span><br>
								<span >今日扫码</span>
							</div>
							<div class="item" @click="toUrl('/system/back/poster/posterMa/toMyList.do?type=week')">
								<span>{{info.sevenDayNum}}</span><br>
								<span>7天扫码</span>
							</div>
							<div class="item" @click="toUrl('/system/back/poster/posterMa/toMyList.do?type=month')">
								<span>{{info.thirtyNum}}</span><br>
								<span>30天扫码</span>
							</div>
							<div class="item" @click="toUrl('/system/back/order/courseOrder/toMyGrades.do?type=day')">
								<span>{{info.dayMoneyNum}}</span><br>
								<span>当日业绩</span>
							</div>
							<div class="item" @click="toUrl('/system/back/order/courseOrder/toMyGrades.do?type=week')">
								<span>{{info.serverMoneyNum}}</span><br>
								<span>本周业绩</span>
							</div>
							<div class="item" @click="toUrl('/system/back/order/courseOrder/toMyGrades.do?type=month')">
								<span>{{info.thirtyMoneyNum}}</span><br>
								<span>本月业绩</span>
							</div>
						</div>
						<div>
							<div class="hb-hm" @click="toUrl('/system/back/poster/manage/toModify.do')">
								<i class="iconfont icon-jishiben"></i><br>
								<span>海报换码</span>
							</div>
						</div>
						<div class="but">
							<div class="btn-content" @click="toUrl('/system/back/order/courseOrder/toMyGrades.do')">
								<div class="btn-icon col1">
									<i class="iconfont icon-tongji"></i>
								</div>
								<div>
									<span class="fs12">成交管理</span>
								</div>
							</div>
							<div class="btn-content" @click="toUrl('/system/back/poster/cusCoupon/toMyList.do')">
								<div class="btn-icon col2">
									<i class="iconfont icon-lingquan"></i>
								</div>
								<div>
									<span class="fs12">领券管理</span>
								</div>
							</div>
							<div class="btn-content" @click="toUrl('/system/back/poster/posterMa/toMyList.do')">
								<div class="btn-icon col3">
									<i class="iconfont icon-caidan"></i>
								</div>
								<div>
									<span class="fs12">扫码明细</span>
								</div>
							</div>
							<div class="btn-content" @click="toUrl('/system/back/poster/manage/toMyList.do')">
								<div class="btn-icon col4">
									<i class="iconfont icon-lianxiren"></i>
								</div>
								<div>
									<span class="fs12">海报管理</span>
								</div>
							</div>
							<div class="btn-content">
								<div class="btn-icon col5">
									<i class="iconfont icon-tongji1"></i>
								</div>
								<div>
									<span class="fs12">财务明细</span>
								</div>
							</div>
							<div class="btn-content" @click="toUrl('/system/back/poster/advCoupon/myList.do')">
								<div class="btn-icon col6">
									<i class="iconfont icon-shezhi"></i>
								</div>
								<div>
									<span class="fs12">课程优惠券</span>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			</div>
		</div>
	</body>
</html>
<script type="text/javascript">
	function href() {
	}

	function me() {
	}

	var app = new Vue({
		el: "#con",
		data: {
			info : {
				user : {
					userId: '',
					userName : '',
					userIcon: ''
				},
				dayNum: 0, //日扫码
				sevenDayNum: 0, //七日扫码
				thirtyNum: 0, //三十日扫码
				dayMoneyNum: 0, //当日业绩
				nowMonthMoneyNum: 0, //本月业绩
				onMonthMoneyNum: 0 //上月业绩
			}
		},
		created() {
			this.getdata()
		},
		methods: {
			getdata(){
				axios({
					url:"/app/home/main",
					method:"get"
				}).then((res)=>{
					this.info = res.data.obj
				})
			},
			toUrl(url) {
				window.location.href = url;

			}
		}
	})
</script>
